import { Singleton } from "../../Singleton/Singleton";
export class ProtoInfo extends Singleton<ProtoInfo> {

    private static _Instance: ProtoInfo;
    static get Instance() {
        return this._Instance;
    }

    protected set Instance(value: ProtoInfo) {
        ProtoInfo._Instance = value;
    }

    constructor() {
        super();
    }

    private _root: protobuf.Root;
    public get Root(): protobuf.Root {
        return this._root;
    }

    public Load(json: Object) {
        this._root = window.protobuf.Root.fromJSON(json);
    }

}